<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      let arr = ["Apple", "Orange", "Pear"];

      console.log(arr); // 0 1 2 下标，索引（属性）
      for (let i = 0; i < arr.length; i++) {
        console.log(arr[i]);
      }

      for (let v of arr) {
        console.log(v);
      }
    </script>
  </body>
</html>
